﻿namespace ConsoleApp1
{
    internal class Student
    {
        private string name;
        private int son;
        private int age;



        public string Name { get => name; set => name = value; }
        public int Son { get => son; set => son = value; }
        public int Age { get => age; set => age = value; }
        public Student() { }

        public Student(int son, string name, int age)
        {
            Age = age;
            Name = name;
            Son = son;
        }


        public override string ToString()
        {
            return $"学号：{Son}\t姓名:{Name}\t年龄：{Age}";
        }
    }
}